#!/usr/bin/python
# -*- coding: UTF-8 -*-

import tkinter as tk

# 创建窗体
window = tk.Tk()
window.title('Tk Demo')
window.geometry('350x500')

tk.Label(window, text='on the window').pack()

frm = tk.Frame(window).pack()
frm_l = tk.Frame(frm)
frm_r = tk.Frame(frm)

frm_l.pack(side='left')
frm_r.pack(side='right')

tk.Label(frm_l, text='on the frm_l1').pack()
tk.Label(frm_l, text='on the frm_l2').pack()
tk.Label(frm_r, text='on the frm_r').pack()

window.mainloop()

